package cn.zz.veggie.application.packer;

import cn.zz.veggie.model.domain.Admin;
import cn.zz.veggie.web.types.vo.mgmt.admin.MgmtAdminVo;

/**
 * @author zhongq
 * @since 2024/7/13
 */
public class AdminPacker {
	public static MgmtAdminVo toMgmtAdminVo(Admin admin) {
		final MgmtAdminVo vo = new MgmtAdminVo();
		vo.setId(admin.getId());
		vo.setUsername(admin.getUsername());
		vo.setMobile(admin.getMobile());
		vo.setCreateAt(admin.getCreateAt());
		return vo;
	}
}